<%@ page language="java" import="java.util.*" pageEncoding="Utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>修改会员</title>
<link rel="stylesheet" href="${pageContext.request.contextPath}/common/style/base.css" type="text/css" media="screen" />
<link rel="stylesheet" href="${pageContext.request.contextPath}/common/style/page.css" type="text/css" media="screen" />
<link rel="stylesheet" href="${pageContext.request.contextPath}/common/src/css/jscal2.css" type="text/css" media="screen" />
<script src="${pageContext.request.contextPath}/common/js/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/common/js/common.js" type="text/javascript"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/common/js/formvalidator.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/common/js/formvalidatorregex.js"></script>
<script type="text/javascript">
	$(function(){
		$.formValidator.initConfig({formid:"form",autotip:true});
		$("#password").formValidator({onshow:"请输入密码",onfocus:"密码应该为6-20位之间"}).inputValidator({min:6,max:20,onerror:"密码应该为6-20位之间"});
		$("#repassword").formValidator({onshow:"请输入确认密码",onfocus:"两次密码必须想同。",oncorrect:"密码输入一致"}).compareValidator({desid:"password",operateor:"=",onerror:"请输入两次密码不同。"});
		$("#address").formValidator({onshow:"请输入地址",onfocus:"请输入地址"}).inputValidator({min:2,max:20,onerror:"请输入地址2-20位"}).regexValidator({regexp:"notempty",datatype:"enum",onerror:"请输入地址"});
		$("#email").formValidator({onshow:"请输入E-mail",onfocus:"E-mail格式错误",oncorrect:"E-mail格式正确"}).regexValidator({regexp:"email",datatype:"enum",onerror:"E-mail格式错误"});
	});

 
function submit1(){
	 $("#url").val('panel/member/getMemberListByPage.action');
	$("#form").submit();
}
</script>
</head>
<body>

<form id="form" action="update.action" method="post">
<input type="hidden" name="url" id="url"/>			
<div id="main_frame">	
	<div id="pagemenu">
	<a href="getMemberListByPage.action" title="会员列表">会员列表</a>|<a href="javascript:void(0);" class="selected">会员修改</a>
	</div>
	
	<div class="listtitle">
		<ul>
			<li class="selected"><a href="javascript:void(0);" title="基本信息">基本信息</a></li>
		</ul>
	</div>
	<div class="listbox">
		<input type="hidden" name="member.id" value="${member.id}"/>
		<div>
			<table class="addtab"  align="center">
<tr>
					<th>用户名</th>
					<td>${member.loginName}</td>
				</tr>
				<tr>
					<th>E-mail</th>
					<td><input type="text" class="tx6" name="member.email" value="${member.email}" title="请输入E-mail" id="email"/></td>
				</tr>
				<tr>
					<th>手机</th>
					<td><input type="text" class="tx6" name="member.mobile" value="${member.mobile}"  id="mobile"/></td>
				</tr>
				<tr>
					<th>年级</th>
					<td><input type="text" class="tx6" name="member.grade" value="${member.grade}"  id="grade"/></td>
				</tr>
				<tr>
					<th>密码</th>
					<td><input type="password" class="tx6" name="member.password"  title="请输入密码" id="password"/></td>
				</tr>	
				<tr>
					<th>确认密码</th>
					<td><input type="password" class="tx6" value="" title="请输入确认密码" id="repassword"/></td>
				</tr>
<tr>
					<th>联系地址</th>
					<td>
						<input type="text" name="member.address" class="tx6" value="${member.address}" id="address" title="联系地址"/>
					</td>
				</tr>
			</table>
		</div>
		
	</div>
</div>
</form>
<div id="bottombar">
	<div class="fr btns"><input onclick="submit1();" type="button" value="保存" class="savebtn1"/><input type="button" value="取消 " class="cancelbtn" onclick="history.go(-1)"/></div>
</div>
</body>
</html>